<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .p1{
            font-size: 20px;
            font-weight: bold;
            font-family: 宋体;
            font-style: italic;

            width: 500px;
            height: 200px;
            background: #ccc;

            color: #f00;
            /* 文本的垂直居中：将line-height与height设置为相同 */
            line-height: 200px;
            text-align: center;

            text-decoration: line-through;

        }
        img{
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <p class="p1">哈哈哈哈</p>
    <img src="./images/2.png" alt=""> 嘿嘿嘿嘿
</body>
</html>